<?php
/**
 * @version		$Id: product.php 3 2011-12-16 20:19:15Z netix.mail@gmail.com $
 * @package		ALM Hoster
 * @desription	Web hosting and domain menager for resellers
 * @subpackage	Components
 * @copyright	Copyright (C) 2011 ALM Studio. All rights reserved.
 * @author		ALM Studio
 * @email		info@alm-studio.net
 * @link		http://alm-studio.net
 * @license		Commercial
 */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.controllerform');

class AlmHosterControllerProduct extends JControllerForm
{
	public function getModel($name = 'Product', $prefix = 'AlmHosterModel') 
	{
		$model = parent::getModel($name, $prefix, array('ignore_request' => true));
		return $model;
	}
	
	public function orderProduct() {
	
			$app = JFactory::getApplication();	
			$model       = &$this->getModel ( 'Product' );

			$order 		 = $model->order ();	
			$msg         = JText::_( 'Uspjelo' ) ;		
			$urlredirect = "index.php?option=com_almhoster&view=neworder&layout=order";
			$app->redirect( $urlredirect, $msg );	

	
	}
}
